package com.meituan.sdk.model.ddzh.yuding.bookUnreserveAddprice;

import com.meituan.sdk.annotations.ApiMeta;
import java.util.List;
import com.google.gson.reflect.TypeToken;
import javax.validation.constraints.NotBlank;
import java.lang.reflect.Type;
import com.meituan.sdk.internal.utils.JsonUtil;
import com.google.gson.annotations.SerializedName;
import com.meituan.sdk.MeituanResponse;
import com.meituan.sdk.MeituanRequest;
import javax.validation.constraints.NotEmpty;

/**
* 未预约尾款订单发起补价接口
* This file was automatically generated.
*/
@ApiMeta(
    path = "/ddzh/yuding/unreserve/addprice",
    businessId = 58,
    apiVersion = "10024",
    apiName = "book_unreserve_addprice",
    needAuth = true
)
public class BookUnreserveAddpriceRequest implements MeituanRequest<BookUnreserveAddpriceResponse> {
    /**
    * <p data-diff-id="ct-diff-id-5e2d0fd5-daa7-4b35-b9bd-902dac0de9dd">首单券码</p>
    */
    @NotBlank(message = "firstOrderCode不能为空")
    @SerializedName("firstOrderCode")
    private String firstOrderCode;
    /**
    * <p data-diff-id="ct-diff-id-a4009952-cc4f-4314-a73b-cde5c960c431">加价信息列表</p>
    */
    @NotEmpty(message = "balancePaymentDetails不能为空")
    @SerializedName("balancePaymentDetails")
    private List<BalancePaymentDetailsDTO> balancePaymentDetails;

    public String getFirstOrderCode() {
        return firstOrderCode;
    }
    public void setFirstOrderCode(String firstOrderCode) {
        this.firstOrderCode = firstOrderCode;
    }
    public List<BalancePaymentDetailsDTO> getBalancePaymentDetails() {
        return balancePaymentDetails;
    }
    public void setBalancePaymentDetails(List<BalancePaymentDetailsDTO> balancePaymentDetails) {
        this.balancePaymentDetails = balancePaymentDetails;
    }


    @Override
    public MeituanResponse<BookUnreserveAddpriceResponse> deserializeResponse(String response) {
        Type type = new TypeToken<MeituanResponse<BookUnreserveAddpriceResponse>>(){}.getType();
        return JsonUtil.fromJson(response, type);
    }
    @Override
    public String serializeToJson() {
        return JsonUtil.toJson(this);
    }


    @Override
    public String toString() {
        return "BookUnreserveAddpriceRequest{" + "firstOrderCode=" + firstOrderCode + "," + "balancePaymentDetails=" + balancePaymentDetails + "}";
    }
}
